public class TestStudent {
	public static void main1(String[] args) {
		Student [] stu=new Student[3];
		stu[0]=new Student("张三",1001,87);
		stu[1]=new Student("李四",1001,98);
		stu[2]=new Student("王五",1001,100);
		for(int i =0;i<stu.length;i++) {
			boolean flg=true;
			for(int j=i;j<stu.length-1-i;j++) {
				if(stu[j].score>stu[j+1].score) {
					swap(stu[j],stu[j+1]);
					flg=false;
				}
			}
			if(flg) {
				break;
			}
		}
		for(int i = 0 ;i<stu.length;i++) {
			System.out.println("姓名："+stu[i].name+"学号："+stu[i].stuno+"成绩："+stu[i].score);
		}
		System.out.println();
	}
	public static void swap(Student s1,Student s2 ) {
		Student tmp=s1;
		s1=s2;
		s2=tmp;
	}

	public static void main(String[] args) {
		byte a=0x03;
		byte b=0x0A;
		System.out.print("a与b的按位与的结果为:");
		System.out.println(a&b);
	}
}
